import java.util.Scanner;

public class chap1{
    public static void main(String [] arges){
        Scanner IntReader = new Scanner(System.in);

        int x=IntReader.nextInt();
        int y=IntReader.nextInt();

        System.out.println(x+y);
        System.out.println(x-y);
        System.out.println(x*y);
        if(y!=0){
            System.out.println((double)x/y);
        }
        else{
            System.out.println("terror");
        }
    }
}